﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Web.Profile;

namespace SocialCee.Authorization.Tests
{
    [TestClass]
    public class ProfileManager
    {
        [TestMethod]
        public void Create()
        {
            ProfileBase profile = SocialCee.Authorization.ProfileManager.Create("test");

            SocialCee.Authorization.ProfileManager.AddProperty<string>(profile, "Name", "value 1");
            SocialCee.Authorization.ProfileManager.AddProperty<string>(profile, "AboutMe", "value 2");

            SocialCee.Authorization.ProfileManager.Save(profile);
            Assert.IsNotNull(profile);
        }
    }
}
